perm filename PUPSET.C[11,HE] blob
sn#688207 filedate 1982-12-06 generic text, type T, neo UTF8
/* LINTLIBRARY */
/*
* pupsset.c
*
* pupsettimeout sets the timeout (in clock ticks) for
* the given channel.
*
* pupsetmode sets the channel mode word.
*
* pupgetmode returns the channel mode word.
*
* Jeffrey Mogul & Dan Kolkowitz 12-January-1981
*
*/
#include <puppacket.h>
#include <pupstatus.h>
pupsettimeout(Pchan,timeout)
struct PupChan *Pchan; /* channel data structure */
int timeout; /* timeout in clock ticks */
{
Pchan->timeout = timeout;
#ifdef VAX
Pchan->TimeoutSet = 0; /* No longer set at lowest levels */
#endif VAX
}
pupsetmode(Pchan, newmode)
struct PupChan *Pchan; /* channel data structure */
short newmode; /* new contents for mode word */
{
Pchan->mode = newmode;
}
short pupgetmode(Pchan)
struct PupChan *Pchan; /* channel data structure */
{
return(Pchan->mode);
}